package com.xhtt.modules.cfg.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xhtt.modules.cfg.dao.CfgTubeRelateMapper;
import com.xhtt.modules.cfg.entity.CfgTubeRelate;
import com.xhtt.modules.cfg.model.ValidTubeParam;
import com.xhtt.modules.cfg.service.CfgTubeRelateService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author feipc
 * @since 2019-02-21
 */
@Service
public class CfgTubeRelateServiceImpl extends ServiceImpl<CfgTubeRelateMapper, CfgTubeRelate> implements CfgTubeRelateService {

    @Override
    public List<CfgTubeRelate> getValidRelateObject(ValidTubeParam param) {
        return baseMapper.getValidRelateObject(param.getTubeId(), param.getProductId());
    }
}
